<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="androidpublisher_v3.html">Google Play Android Developer API</a> . <a href="androidpublisher_v3.monetization.html">monetization</a> . <a href="androidpublisher_v3.monetization.subscriptions.html">subscriptions</a> . <a href="androidpublisher_v3.monetization.subscriptions.basePlans.html">basePlans</a> . <a href="androidpublisher_v3.monetization.subscriptions.basePlans.offers.html">offers</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#activate">activate(packageName, productId, basePlanId, offerId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Activates a subscription offer. Once activated, subscription offers will be available to new subscribers.</p>
<p class="toc_element">
  <code><a href="#batchGet">batchGet(packageName, productId, basePlanId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Reads one or more subscription offers.</p>
<p class="toc_element">
  <code><a href="#batchUpdate">batchUpdate(packageName, productId, basePlanId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates a batch of subscription offers. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.</p>
<p class="toc_element">
  <code><a href="#batchUpdateStates">batchUpdateStates(packageName, productId, basePlanId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates a batch of subscription offer states. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.</p>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#create">create(packageName, productId, basePlanId, body=None, offerId=None, regionsVersion_version=None, x__xgafv=None)</a></code></p>
<p class="firstline">Creates a new subscription offer. Only auto-renewing base plans can have subscription offers. The offer state will be DRAFT until it is activated.</p>
<p class="toc_element">
  <code><a href="#deactivate">deactivate(packageName, productId, basePlanId, offerId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Deactivates a subscription offer. Once deactivated, existing subscribers will maintain their subscription, but the offer will become unavailable to new subscribers.</p>
<p class="toc_element">
  <code><a href="#delete">delete(packageName, productId, basePlanId, offerId, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes a subscription offer. Can only be done for draft offers. This action is irreversible.</p>
<p class="toc_element">
  <code><a href="#get">get(packageName, productId, basePlanId, offerId, x__xgafv=None)</a></code></p>
<p class="firstline">Reads a single offer</p>
<p class="toc_element">
  <code><a href="#list">list(packageName, productId, basePlanId, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists all offers under a given subscription.</p>
<p class="toc_element">
  <code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
  <code><a href="#patch">patch(packageName, productId, basePlanId, offerId, allowMissing=None, body=None, latencyTolerance=None, regionsVersion_version=None, updateMask=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates an existing subscription offer.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="activate">activate(packageName, productId, basePlanId, offerId, body=None, x__xgafv=None)</code>
  <pre>Activates a subscription offer. Once activated, subscription offers will be available to new subscribers.

Args:
  packageName: string, Required. The parent app (package name) of the offer to activate. (required)
  productId: string, Required. The parent subscription (ID) of the offer to activate. (required)
  basePlanId: string, Required. The parent base plan (ID) of the offer to activate. (required)
  offerId: string, Required. The unique offer ID of the offer to activate. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for ActivateSubscriptionOffer.
  &quot;basePlanId&quot;: &quot;A String&quot;, # Required. The parent base plan (ID) of the offer to activate.
  &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
  &quot;offerId&quot;: &quot;A String&quot;, # Required. The unique offer ID of the offer to activate.
  &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the offer to activate.
  &quot;productId&quot;: &quot;A String&quot;, # Required. The parent subscription (ID) of the offer to activate.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A single, temporary offer
  &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
  &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
  &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
    { # Represents a custom tag specified for a product offer.
      &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
    },
  ],
  &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
    &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
  },
  &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
  &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
    { # A single phase of a subscription offer.
      &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
      &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
        &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
          &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
        },
        &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
        },
        &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
          &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
        },
        &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
      },
      &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
      &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
        { # Configuration for a single phase of a subscription offer in a single region.
          &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
          },
          &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
          &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
        },
      ],
    },
  ],
  &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
  &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
    { # Configuration for a subscription offer in a single region.
      &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
      &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
    },
  ],
  &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
  &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
    &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
      &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
        &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
        },
        &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
        &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
        },
      },
    },
    &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
      &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
      &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
      &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
        &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
        },
        &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
        &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
        },
      },
    },
  },
}</pre>
</div>

<div class="method">
    <code class="details" id="batchGet">batchGet(packageName, productId, basePlanId, body=None, x__xgafv=None)</code>
  <pre>Reads one or more subscription offers.

Args:
  packageName: string, Required. The parent app (package name) for which the subscriptions should be created or updated. Must be equal to the package_name field on all the requests. (required)
  productId: string, Required. The product ID of the parent subscription, if all updated offers belong to the same subscription. If this request spans multiple subscriptions, set this field to &quot;-&quot;. Must be set. (required)
  basePlanId: string, Required. The parent base plan (ID) for which the offers should be read. May be specified as &#x27;-&#x27; to read offers from multiple base plans. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for BatchGetSubscriptionOffers endpoint.
  &quot;requests&quot;: [ # Required. A list of update requests of up to 100 elements. All requests must update different subscriptions.
    { # Request message for GetSubscriptionOffer.
      &quot;basePlanId&quot;: &quot;A String&quot;, # Required. The parent base plan (ID) of the offer to get.
      &quot;offerId&quot;: &quot;A String&quot;, # Required. The unique offer ID of the offer to get.
      &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the offer to get.
      &quot;productId&quot;: &quot;A String&quot;, # Required. The parent subscription (ID) of the offer to get.
    },
  ],
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for BatchGetSubscriptionOffers endpoint.
  &quot;subscriptionOffers&quot;: [
    { # A single, temporary offer
      &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
      &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
      &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
        { # Represents a custom tag specified for a product offer.
          &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
        },
      ],
      &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
        &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
      },
      &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
      &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
        { # A single phase of a subscription offer.
          &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
          &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
            &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
              &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
              &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
            },
            &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
            },
            &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
              &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
              &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
            },
            &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
          },
          &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
          &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
            { # Configuration for a single phase of a subscription offer in a single region.
              &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
              &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
              },
              &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
              &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
              &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
            },
          ],
        },
      ],
      &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
      &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
        { # Configuration for a subscription offer in a single region.
          &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
          &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
        },
      ],
      &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
      &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
        &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
          &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
            &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
            },
            &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
            &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
            },
          },
        },
        &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
          &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
          &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
          &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
            &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
            },
            &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
            &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
            },
          },
        },
      },
    },
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="batchUpdate">batchUpdate(packageName, productId, basePlanId, body=None, x__xgafv=None)</code>
  <pre>Updates a batch of subscription offers. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.

Args:
  packageName: string, Required. The parent app (package name) of the updated subscription offers. Must be equal to the package_name field on all the updated SubscriptionOffer resources. (required)
  productId: string, Required. The product ID of the parent subscription, if all updated offers belong to the same subscription. If this request spans multiple subscriptions, set this field to &quot;-&quot;. Must be set. (required)
  basePlanId: string, Required. The parent base plan (ID) for which the offers should be updated. May be specified as &#x27;-&#x27; to update offers from multiple base plans. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for BatchUpdateSubscriptionOffers.
  &quot;requests&quot;: [ # Required. A list of update requests of up to 100 elements. All requests must update different subscription offers.
    { # Request message for UpdateSubscriptionOffer.
      &quot;allowMissing&quot;: True or False, # Optional. If set to true, and the subscription offer with the given package_name, product_id, base_plan_id and offer_id doesn&#x27;t exist, an offer will be created. If a new offer is created, update_mask is ignored.
      &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
      &quot;regionsVersion&quot;: { # The version of the available regions being used for the specified resource. # Required. The version of the available regions being used for the subscription_offer.
        &quot;version&quot;: &quot;A String&quot;, # Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region&#x27;s version and set of regional prices and currencies will succeed even though a new version is available.
      },
      &quot;subscriptionOffer&quot;: { # A single, temporary offer # Required. The subscription offer to update.
        &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
        &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
        &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
          { # Represents a custom tag specified for a product offer.
            &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
          },
        ],
        &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
          &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
        },
        &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
        &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
          { # A single phase of a subscription offer.
            &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
            &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
              &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
                &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                  &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                  &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
                },
                &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                  &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                  &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
                },
              },
              &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
              },
              &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
                &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                  &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                  &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
                },
                &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                  &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                  &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
                },
              },
              &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
            },
            &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
            &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
              { # Configuration for a single phase of a subscription offer in a single region.
                &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                  &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                  &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
                },
                &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
                },
                &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
                  &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                  &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                  &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
                },
                &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
                &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
              },
            ],
          },
        ],
        &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
        &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
          { # Configuration for a subscription offer in a single region.
            &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
            &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
          },
        ],
        &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
        &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
          &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
            &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
              &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
              },
              &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
              &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
              },
            },
          },
          &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
            &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
            &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
            &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
              &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
              },
              &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
              &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
              },
            },
          },
        },
      },
      &quot;updateMask&quot;: &quot;A String&quot;, # Required. The list of fields to be updated.
    },
  ],
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for BatchUpdateSubscriptionOffers.
  &quot;subscriptionOffers&quot;: [ # The updated subscription offers list.
    { # A single, temporary offer
      &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
      &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
      &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
        { # Represents a custom tag specified for a product offer.
          &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
        },
      ],
      &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
        &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
      },
      &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
      &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
        { # A single phase of a subscription offer.
          &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
          &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
            &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
              &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
              &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
            },
            &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
            },
            &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
              &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
              &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
            },
            &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
          },
          &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
          &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
            { # Configuration for a single phase of a subscription offer in a single region.
              &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
              &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
              },
              &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
              &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
              &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
            },
          ],
        },
      ],
      &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
      &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
        { # Configuration for a subscription offer in a single region.
          &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
          &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
        },
      ],
      &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
      &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
        &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
          &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
            &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
            },
            &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
            &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
            },
          },
        },
        &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
          &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
          &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
          &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
            &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
            },
            &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
            &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
            },
          },
        },
      },
    },
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="batchUpdateStates">batchUpdateStates(packageName, productId, basePlanId, body=None, x__xgafv=None)</code>
  <pre>Updates a batch of subscription offer states. Set the latencyTolerance field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update throughput.

Args:
  packageName: string, Required. The parent app (package name) of the updated subscription offers. Must be equal to the package_name field on all the updated SubscriptionOffer resources. (required)
  productId: string, Required. The product ID of the parent subscription, if all updated offers belong to the same subscription. If this request spans multiple subscriptions, set this field to &quot;-&quot;. Must be set. (required)
  basePlanId: string, Required. The parent base plan (ID) for which the offers should be updated. May be specified as &#x27;-&#x27; to update offers from multiple base plans. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for BatchUpdateSubscriptionOfferStates.
  &quot;requests&quot;: [ # Required. The update request list of up to 100 elements. All requests must update different offers.
    { # Request message to update the state of a subscription offer.
      &quot;activateSubscriptionOfferRequest&quot;: { # Request message for ActivateSubscriptionOffer. # Activates an offer. Once activated, the offer will be available to new subscribers.
        &quot;basePlanId&quot;: &quot;A String&quot;, # Required. The parent base plan (ID) of the offer to activate.
        &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
        &quot;offerId&quot;: &quot;A String&quot;, # Required. The unique offer ID of the offer to activate.
        &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the offer to activate.
        &quot;productId&quot;: &quot;A String&quot;, # Required. The parent subscription (ID) of the offer to activate.
      },
      &quot;deactivateSubscriptionOfferRequest&quot;: { # Request message for DeactivateSubscriptionOffer. # Deactivates an offer. Once deactivated, the offer will become unavailable to new subscribers, but existing subscribers will maintain their subscription
        &quot;basePlanId&quot;: &quot;A String&quot;, # Required. The parent base plan (ID) of the offer to deactivate.
        &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
        &quot;offerId&quot;: &quot;A String&quot;, # Required. The unique offer ID of the offer to deactivate.
        &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the offer to deactivate.
        &quot;productId&quot;: &quot;A String&quot;, # Required. The parent subscription (ID) of the offer to deactivate.
      },
    },
  ],
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for BatchUpdateSubscriptionOfferStates.
  &quot;subscriptionOffers&quot;: [ # The updated subscription offers list.
    { # A single, temporary offer
      &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
      &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
      &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
        { # Represents a custom tag specified for a product offer.
          &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
        },
      ],
      &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
        &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
      },
      &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
      &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
        { # A single phase of a subscription offer.
          &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
          &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
            &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
              &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
              &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
            },
            &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
            },
            &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
              &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
              &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
            },
            &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
          },
          &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
          &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
            { # Configuration for a single phase of a subscription offer in a single region.
              &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
              &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
              },
              &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
              &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
              &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
            },
          ],
        },
      ],
      &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
      &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
        { # Configuration for a subscription offer in a single region.
          &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
          &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
        },
      ],
      &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
      &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
        &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
          &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
            &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
            },
            &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
            &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
            },
          },
        },
        &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
          &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
          &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
          &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
            &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
            },
            &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
            &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
            },
          },
        },
      },
    },
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="create">create(packageName, productId, basePlanId, body=None, offerId=None, regionsVersion_version=None, x__xgafv=None)</code>
  <pre>Creates a new subscription offer. Only auto-renewing base plans can have subscription offers. The offer state will be DRAFT until it is activated.

Args:
  packageName: string, Required. The parent app (package name) for which the offer should be created. Must be equal to the package_name field on the Subscription resource. (required)
  productId: string, Required. The parent subscription (ID) for which the offer should be created. Must be equal to the product_id field on the SubscriptionOffer resource. (required)
  basePlanId: string, Required. The parent base plan (ID) for which the offer should be created. Must be equal to the base_plan_id field on the SubscriptionOffer resource. (required)
  body: object, The request body.
    The object takes the form of:

{ # A single, temporary offer
  &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
  &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
  &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
    { # Represents a custom tag specified for a product offer.
      &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
    },
  ],
  &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
    &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
  },
  &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
  &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
    { # A single phase of a subscription offer.
      &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
      &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
        &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
          &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
        },
        &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
        },
        &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
          &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
        },
        &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
      },
      &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
      &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
        { # Configuration for a single phase of a subscription offer in a single region.
          &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
          },
          &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
          &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
        },
      ],
    },
  ],
  &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
  &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
    { # Configuration for a subscription offer in a single region.
      &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
      &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
    },
  ],
  &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
  &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
    &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
      &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
        &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
        },
        &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
        &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
        },
      },
    },
    &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
      &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
      &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
      &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
        &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
        },
        &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
        &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
        },
      },
    },
  },
}

  offerId: string, Required. The ID to use for the offer. For the requirements on this format, see the documentation of the offer_id field on the SubscriptionOffer resource.
  regionsVersion_version: string, Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region&#x27;s version and set of regional prices and currencies will succeed even though a new version is available.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A single, temporary offer
  &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
  &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
  &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
    { # Represents a custom tag specified for a product offer.
      &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
    },
  ],
  &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
    &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
  },
  &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
  &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
    { # A single phase of a subscription offer.
      &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
      &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
        &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
          &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
        },
        &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
        },
        &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
          &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
        },
        &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
      },
      &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
      &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
        { # Configuration for a single phase of a subscription offer in a single region.
          &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
          },
          &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
          &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
        },
      ],
    },
  ],
  &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
  &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
    { # Configuration for a subscription offer in a single region.
      &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
      &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
    },
  ],
  &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
  &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
    &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
      &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
        &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
        },
        &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
        &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
        },
      },
    },
    &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
      &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
      &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
      &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
        &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
        },
        &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
        &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
        },
      },
    },
  },
}</pre>
</div>

<div class="method">
    <code class="details" id="deactivate">deactivate(packageName, productId, basePlanId, offerId, body=None, x__xgafv=None)</code>
  <pre>Deactivates a subscription offer. Once deactivated, existing subscribers will maintain their subscription, but the offer will become unavailable to new subscribers.

Args:
  packageName: string, Required. The parent app (package name) of the offer to deactivate. (required)
  productId: string, Required. The parent subscription (ID) of the offer to deactivate. (required)
  basePlanId: string, Required. The parent base plan (ID) of the offer to deactivate. (required)
  offerId: string, Required. The unique offer ID of the offer to deactivate. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for DeactivateSubscriptionOffer.
  &quot;basePlanId&quot;: &quot;A String&quot;, # Required. The parent base plan (ID) of the offer to deactivate.
  &quot;latencyTolerance&quot;: &quot;A String&quot;, # Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
  &quot;offerId&quot;: &quot;A String&quot;, # Required. The unique offer ID of the offer to deactivate.
  &quot;packageName&quot;: &quot;A String&quot;, # Required. The parent app (package name) of the offer to deactivate.
  &quot;productId&quot;: &quot;A String&quot;, # Required. The parent subscription (ID) of the offer to deactivate.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A single, temporary offer
  &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
  &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
  &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
    { # Represents a custom tag specified for a product offer.
      &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
    },
  ],
  &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
    &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
  },
  &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
  &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
    { # A single phase of a subscription offer.
      &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
      &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
        &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
          &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
        },
        &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
        },
        &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
          &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
        },
        &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
      },
      &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
      &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
        { # Configuration for a single phase of a subscription offer in a single region.
          &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
          },
          &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
          &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
        },
      ],
    },
  ],
  &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
  &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
    { # Configuration for a subscription offer in a single region.
      &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
      &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
    },
  ],
  &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
  &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
    &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
      &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
        &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
        },
        &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
        &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
        },
      },
    },
    &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
      &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
      &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
      &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
        &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
        },
        &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
        &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
        },
      },
    },
  },
}</pre>
</div>

<div class="method">
    <code class="details" id="delete">delete(packageName, productId, basePlanId, offerId, x__xgafv=None)</code>
  <pre>Deletes a subscription offer. Can only be done for draft offers. This action is irreversible.

Args:
  packageName: string, Required. The parent app (package name) of the offer to delete. (required)
  productId: string, Required. The parent subscription (ID) of the offer to delete. (required)
  basePlanId: string, Required. The parent base plan (ID) of the offer to delete. (required)
  offerId: string, Required. The unique offer ID of the offer to delete. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format
</pre>
</div>

<div class="method">
    <code class="details" id="get">get(packageName, productId, basePlanId, offerId, x__xgafv=None)</code>
  <pre>Reads a single offer

Args:
  packageName: string, Required. The parent app (package name) of the offer to get. (required)
  productId: string, Required. The parent subscription (ID) of the offer to get. (required)
  basePlanId: string, Required. The parent base plan (ID) of the offer to get. (required)
  offerId: string, Required. The unique offer ID of the offer to get. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A single, temporary offer
  &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
  &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
  &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
    { # Represents a custom tag specified for a product offer.
      &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
    },
  ],
  &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
    &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
  },
  &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
  &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
    { # A single phase of a subscription offer.
      &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
      &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
        &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
          &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
        },
        &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
        },
        &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
          &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
        },
        &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
      },
      &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
      &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
        { # Configuration for a single phase of a subscription offer in a single region.
          &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
          },
          &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
          &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
        },
      ],
    },
  ],
  &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
  &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
    { # Configuration for a subscription offer in a single region.
      &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
      &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
    },
  ],
  &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
  &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
    &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
      &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
        &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
        },
        &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
        &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
        },
      },
    },
    &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
      &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
      &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
      &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
        &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
        },
        &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
        &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
        },
      },
    },
  },
}</pre>
</div>

<div class="method">
    <code class="details" id="list">list(packageName, productId, basePlanId, pageSize=None, pageToken=None, x__xgafv=None)</code>
  <pre>Lists all offers under a given subscription.

Args:
  packageName: string, Required. The parent app (package name) for which the subscriptions should be read. (required)
  productId: string, Required. The parent subscription (ID) for which the offers should be read. May be specified as &#x27;-&#x27; to read all offers under an app. (required)
  basePlanId: string, Required. The parent base plan (ID) for which the offers should be read. May be specified as &#x27;-&#x27; to read all offers under a subscription or an app. Must be specified as &#x27;-&#x27; if product_id is specified as &#x27;-&#x27;. (required)
  pageSize: integer, The maximum number of subscriptions to return. The service may return fewer than this value. If unspecified, at most 50 subscriptions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
  pageToken: string, A page token, received from a previous `ListSubscriptionsOffers` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSubscriptionOffers` must match the call that provided the page token.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for ListSubscriptionOffers.
  &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
  &quot;subscriptionOffers&quot;: [ # The subscription offers from the specified subscription.
    { # A single, temporary offer
      &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
      &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
      &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
        { # Represents a custom tag specified for a product offer.
          &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
        },
      ],
      &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
        &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
      },
      &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
      &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
        { # A single phase of a subscription offer.
          &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
          &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
            &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
              &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
              &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
            },
            &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
            },
            &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
              &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
              &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
            },
            &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
          },
          &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
          &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
            { # Configuration for a single phase of a subscription offer in a single region.
              &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
              &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
              },
              &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
                &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
                &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
                &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
              },
              &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
              &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
            },
          ],
        },
      ],
      &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
      &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
        { # Configuration for a subscription offer in a single region.
          &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
          &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
        },
      ],
      &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
      &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
        &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
          &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
            &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
            },
            &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
            &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
            },
          },
        },
        &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
          &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
          &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
          &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
            &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
            },
            &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
            &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
            },
          },
        },
      },
    },
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="list_next">list_next()</code>
  <pre>Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call &#x27;execute()&#x27; on to request the next
          page. Returns None if there are no more items in the collection.
        </pre>
</div>

<div class="method">
    <code class="details" id="patch">patch(packageName, productId, basePlanId, offerId, allowMissing=None, body=None, latencyTolerance=None, regionsVersion_version=None, updateMask=None, x__xgafv=None)</code>
  <pre>Updates an existing subscription offer.

Args:
  packageName: string, Required. Immutable. The package name of the app the parent subscription belongs to. (required)
  productId: string, Required. Immutable. The ID of the parent subscription this offer belongs to. (required)
  basePlanId: string, Required. Immutable. The ID of the base plan to which this offer is an extension. (required)
  offerId: string, Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan. (required)
  body: object, The request body.
    The object takes the form of:

{ # A single, temporary offer
  &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
  &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
  &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
    { # Represents a custom tag specified for a product offer.
      &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
    },
  ],
  &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
    &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
  },
  &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
  &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
    { # A single phase of a subscription offer.
      &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
      &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
        &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
          &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
        },
        &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
        },
        &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
          &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
        },
        &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
      },
      &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
      &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
        { # Configuration for a single phase of a subscription offer in a single region.
          &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
          },
          &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
          &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
        },
      ],
    },
  ],
  &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
  &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
    { # Configuration for a subscription offer in a single region.
      &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
      &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
    },
  ],
  &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
  &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
    &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
      &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
        &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
        },
        &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
        &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
        },
      },
    },
    &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
      &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
      &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
      &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
        &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
        },
        &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
        &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
        },
      },
    },
  },
}

  allowMissing: boolean, Optional. If set to true, and the subscription offer with the given package_name, product_id, base_plan_id and offer_id doesn&#x27;t exist, an offer will be created. If a new offer is created, update_mask is ignored.
  latencyTolerance: string, Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive.
    Allowed values
      PRODUCT_UPDATE_LATENCY_TOLERANCE_UNSPECIFIED - Defaults to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE.
      PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_SENSITIVE - The update will propagate to clients within several minutes on average and up to a few hours in rare cases. Throughput is limited to 7,200 updates per app per hour.
      PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT - The update will propagate to clients within 24 hours. Supports high throughput of up to 720,000 updates per app per hour using batch modification methods.
  regionsVersion_version: string, Required. A string representing the version of available regions being used for the specified resource. Regional prices and latest supported version for the resource have to be specified according to the information published in [this article](https://support.google.com/googleplay/android-developer/answer/10532353). Each time the supported locations substantially change, the version will be incremented. Using this field will ensure that creating and updating the resource with an older region&#x27;s version and set of regional prices and currencies will succeed even though a new version is available.
  updateMask: string, Required. The list of fields to be updated.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A single, temporary offer
  &quot;basePlanId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the base plan to which this offer is an extension.
  &quot;offerId&quot;: &quot;A String&quot;, # Required. Immutable. Unique ID of this subscription offer. Must be unique within the base plan.
  &quot;offerTags&quot;: [ # List of up to 20 custom tags specified for this offer, and returned to the app through the billing library.
    { # Represents a custom tag specified for a product offer.
      &quot;tag&quot;: &quot;A String&quot;, # Must conform with RFC-1034. That is, this string can only contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
    },
  ],
  &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in specified on a subscription offer. # The configuration for any new locations Play may launch in the future.
    &quot;otherRegionsNewSubscriberAvailability&quot;: True or False, # Whether the subscription offer in any new locations Play may launch in the future. If not specified, this will default to false.
  },
  &quot;packageName&quot;: &quot;A String&quot;, # Required. Immutable. The package name of the app the parent subscription belongs to.
  &quot;phases&quot;: [ # Required. The phases of this subscription offer. Must contain at least one and at most two entries. Users will always receive all these phases in the specified order.
    { # A single phase of a subscription offer.
      &quot;duration&quot;: &quot;A String&quot;, # Required. The duration of a single recurrence of this phase. Specified in ISO 8601 format.
      &quot;otherRegionsConfig&quot;: { # Configuration for any new locations Play may launch in for a single offer phase. # Pricing information for any new locations Play may launch in.
        &quot;absoluteDiscounts&quot;: { # Pricing information for any new locations Play may launch in. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in.
          &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
        },
        &quot;free&quot;: { # Represents the free price override configuration for any new locations Play may launch for a single offer phase. # Set to specify this offer is free to obtain.
        },
        &quot;otherRegionsPrices&quot;: { # Pricing information for any new locations Play may launch in. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in.
          &quot;eurPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in EUR to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;usdPrice&quot;: { # Represents an amount of money with its currency type. # Required. Price in USD to use for any new locations Play may launch in.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
        },
        &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in any new locations Play may launch in.
      },
      &quot;recurrenceCount&quot;: 42, # Required. The number of times this phase repeats. If this offer phase is not free, each recurrence charges the user the price of this offer phase.
      &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer phase. This list must contain exactly one entry for each region for which the subscription offer has a regional config.
        { # Configuration for a single phase of a subscription offer in a single region.
          &quot;absoluteDiscount&quot;: { # Represents an amount of money with its currency type. # The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;free&quot;: { # Represents the free price override configuration for a single phase of a subscription offer # Set to specify this offer is free to obtain.
          },
          &quot;price&quot;: { # Represents an amount of money with its currency type. # The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region.
            &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
            &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
            &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
          },
          &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. The region to which this config applies.
          &quot;relativeDiscount&quot;: 3.14, # The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.
        },
      ],
    },
  ],
  &quot;productId&quot;: &quot;A String&quot;, # Required. Immutable. The ID of the parent subscription this offer belongs to.
  &quot;regionalConfigs&quot;: [ # Required. The region-specific configuration of this offer. Must contain at least one entry.
    { # Configuration for a subscription offer in a single region.
      &quot;newSubscriberAvailability&quot;: True or False, # Whether the subscription offer in the specified region is available for new subscribers. Existing subscribers will not have their subscription cancelled if this value is set to false. If not specified, this will default to false.
      &quot;regionCode&quot;: &quot;A String&quot;, # Required. Immutable. Region code this configuration applies to, as defined by ISO 3166-2, e.g. &quot;US&quot;.
    },
  ],
  &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of this offer. Can be changed using Activate and Deactivate actions. NB: the base plan state supersedes this state, so an active offer may not be available if the base plan is not active.
  &quot;targeting&quot;: { # Defines the rule a user needs to satisfy to receive this offer. # The requirements that users need to fulfil to be eligible for this offer. Represents the requirements that Play will evaluate to decide whether an offer should be returned. Developers may further filter these offers themselves.
    &quot;acquisitionRule&quot;: { # Represents a targeting rule of the form: User never had {scope} before. # Offer targeting rule for new user acquisition.
      &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;any subscription in app&quot;.
        &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
        },
        &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
        &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
        },
      },
    },
    &quot;upgradeRule&quot;: { # Represents a targeting rule of the form: User currently has {scope} [with billing period {billing_period}]. # Offer targeting rule for upgrading users&#x27; existing plans.
      &quot;billingPeriodDuration&quot;: &quot;A String&quot;, # The specific billing period duration, specified in ISO 8601 format, that a user must be currently subscribed to to be eligible for this rule. If not specified, users subscribed to any billing period are matched.
      &quot;oncePerUser&quot;: True or False, # Limit this offer to only once per user. If set to true, a user can never be eligible for this offer again if they ever subscribed to this offer.
      &quot;scope&quot;: { # Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. # Required. The scope of subscriptions this rule considers. Only allows &quot;this subscription&quot; and &quot;specific subscription in app&quot;.
        &quot;anySubscriptionInApp&quot;: { # Represents the targeting rule scope corresponding to any subscription in the parent app. # The scope of the current targeting rule is any subscription in the parent app.
        },
        &quot;specificSubscriptionInApp&quot;: &quot;A String&quot;, # The scope of the current targeting rule is the subscription with the specified subscription ID. Must be a subscription within the same parent app.
        &quot;thisSubscription&quot;: { # Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined. # The scope of the current targeting rule is the subscription in which this offer is defined.
        },
      },
    },
  },
}</pre>
</div>

</body></html>